package com.atguigu.gulimall.product.service;

import com.atguigu.gulimall.product.vo.AttrRespVo;
import com.atguigu.gulimall.product.vo.AttrVo;
import com.atguigu.gulimall.product.vo.attrGroupRelationVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 *   Ʒ    
 *
 * @author wansheng
 * @email 2060054181@gmail.com
 * @date 2024-10-13 19:39:10
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveattr(AttrVo attr);

    PageUtils queryPageBase(Map<String, Object> params, Long catelogid, String attrType);

    AttrRespVo getattrInfo(Long attrId);

    void updateAttr(AttrVo attrVo);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    void deleteeRelation(attrGroupRelationVo[] attrGroupRelationVo);

    PageUtils getnoRelationAttr(Long attrgroupId, Map<String, Object> params);

    List<Long> selectSearchAttrs(List<Long> attrids);
}

